package main

/*
#cgo CFLAGS: -I.
#cgo LDFLAGS: -L. -lfoo
#include <stdio.h>
#include <stdlib.h>
#include "foo.h"
*/
import "C"
import "fmt"

func main() {
    a, b := 1, 2
    c := C.add(C.int(a), C.int(b))
    fmt.Printf("%d + %d = %d\n", a, b, int(c))
}